package com.ken.base_http_library.http_api_impl

import com.ken.base_http_library.ServiceCreator
import com.ken.base_http_library.http_api_service.JuHeApiService
import com.ken.base_http_library.oil_price.OilPriceResponse
import com.ken.base_http_library.response.JuHeBaseResponse
import io.reactivex.Observable
import io.reactivex.functions.Function

/**
 * @author by ken
 * Blog:
 * Date:2020/5/8
 * Description:
 */
class JuHeApiLoader : ObjectLoader() {
    lateinit var juHeApiService: JuHeApiService

    init {
//        juHeApiService = ServiceCreator.create(JuHeApiService::class.java)
    }

   /* fun getGNYJ(price: String):Observable<List<OilPriceResponse>> {
        return observe(juHeApiService.getTodayOilPrice(price)).map(object :Function<JuHeBaseResponse<OilPriceResponse>,
                List<OilPriceResponse>>){


         }
    }*/
}